<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>日期转换</title>
</head>
<body>
    <div id="app">

    </div>

    <script>

        let time = new Date();
        console.log(time);
        console.log(time.toString());
        console.log(typeof (time.toString()))
        console.log( typeof time.toISOString());

    </script>
</body>
</html>